﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_PRODUCT.Product.BasicList;
using ERP_RORZE_PRODUCT.Product.PartData;
using ERP_RORZE_PRODUCT.Product.Machine;
using ERP_RORZE_PRODUCT.Product.UserControls;
using ERP_RORZE_PRODUCT.Product.MO;
using ERP_RORZE_PRODUCT.Product.PartHandling;
using ERP_RORZE_PRODUCT.Product.Deadline;
using ERP_RORZE_PRODUCT.Product.MonthlyCharge;
using ERP_RORZE_PRODUCT.Product.Quotation;
using ERP_RORZE_PRODUCT.Product.WTS;
using ERP_RORZE_PRODUCT.Product.LINK_VCUONGDATABASE;
using ERP_RORZE_PRODUCT.Product.Incauhinh;
using ERP_RORZE_PRODUCT.Product.CheckThoiGianLamViec;
using ERP_RORZE_PRODUCT.Product.BCThoigianlamviecthang;
using ERP_RORZE_PRODUCT.Product.NGNoibo;
using ERP_RORZE_PRODUCT.Product.XLBM;

namespace ERP_RORZE_PRODUCT.Product
{
    public partial class ctrl_ProductMain : DevExpress.XtraEditors.XtraUserControl
    {
        
        public ctrl_ProductMain()
        {
            InitializeComponent();
        }

        private void navBarItemSection_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlSection ctrlSetion = new ctrlSection();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBarItemWork_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlWork ctrlWork = new ctrlWork();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlWork);
            ctrlWork.Dock = DockStyle.Fill;
        }

        private void navBarItemOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlOption ctrlOption = new ctrlOption();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlOption);
            ctrlOption.Dock = DockStyle.Fill;
        }

        private void navBarItemJig_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlJig ctrlJig = new ctrlJig();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlJig);
            ctrlJig.Dock = DockStyle.Fill;
        }

        private void navBarItemExpence_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlExpence ctrlExpence = new ctrlExpence();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlExpence);
            ctrlExpence.Dock = DockStyle.Fill;
        }

        private void navBarItemPartList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlPartList ctrlPartlist = new ctrlPartList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlPartlist);
            ctrlPartlist.Dock = DockStyle.Fill;
        }

        private void navBarItemPartMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlPartMaterial ctrlPartmaterial = new ctrlPartMaterial();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlPartmaterial);
            ctrlPartmaterial.Dock = DockStyle.Fill;
        }

        private void navBarItemOptionData_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlOptionData ctrlOptiondata = new ctrlOptionData();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlOptiondata);
            ctrlOptiondata.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineList ctrlMachine = new ctrlMachineList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachine);
            ctrlMachine.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineGroup_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineGroup ctrlMachineGroup = new ctrlMachineGroup();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineGroup);
            ctrlMachineGroup.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineCapacity_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MachineCapacity ctrlMachinecapacity = new frm_MachineCapacity();
            
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachinecapacity);
            ctrlMachinecapacity.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineDailyTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineDailyTime ctrlMachineDailytime = new ctrlMachineDailyTime();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineDailytime);
            ctrlMachineDailytime.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBusOderList ctrlBusoderlist = new ctrlBusOderList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderlist);
            ctrlBusoderlist.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderCancel_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            CtrlBusOderCancel ctrlBusodercancel = new CtrlBusOderCancel();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusodercancel);
            ctrlBusodercancel.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderDeadlineChange_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBusOderDeadline ctrlBusoderDeadline = new ctrlBusOderDeadline();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderDeadline);
            ctrlBusoderDeadline.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderQty_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBusOderQtyChange ctrlBusoderqtychange = new ctrlBusOderQtyChange();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderqtychange);
            ctrlBusoderqtychange.Dock = DockStyle.Fill;
        }

        private void navBarItemMoList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOList ctrlMO = new ctrlMOList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMO);
            ctrlMO.Dock = DockStyle.Fill;
        }

        private void navBarItemMONoUpdate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MONoUpdate ctrlMONoupdate = new frm_MONoUpdate();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONoupdate);
            ctrlMONoupdate.Dock = DockStyle.Fill;
        }

        private void navBarItemMOSelect_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOSelect ctrlMOselect = new ctrlMOSelect();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOselect);
            ctrlMOselect.Dock = DockStyle.Fill;
        }

        private void navBarItemMOSheetView_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOSheetView ctrlMOsheetview = new ctrlMOSheetView();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOsheetview);
            ctrlMOsheetview.Dock = DockStyle.Fill;
        }

        private void navBarItemMOMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOMaterial ctrlMOMat = new ctrlMOMaterial();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOMat);
            ctrlMOMat.Dock = DockStyle.Fill;
        }

        private void navBarItemMOstart_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOStart ctrlMOstart = new ctrlMOStart();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOstart);
            ctrlMOstart.Dock = DockStyle.Fill;
        }

        private void navBarItemMOOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOOption ctrlMOoption = new ctrlMOOption();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOoption);
            ctrlMOoption.Dock = DockStyle.Fill;
        }

        private void navBarItemMOQtyStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOQtyStatus ctrlMOQtystatus = new ctrlMOQtyStatus();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOQtystatus);
            ctrlMOQtystatus.Dock = DockStyle.Fill;
        }

        private void navBarItemMOQtyChange_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MOQtyChange ctrlMOQtychange = new frm_MOQtyChange();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOQtychange);
            ctrlMOQtychange.Dock = DockStyle.Fill;
        }

        private void navBarItemMOFinish_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MOFinish ctrlMOFinish = new frm_MOFinish();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOFinish);
            ctrlMOFinish.Dock = DockStyle.Fill;
        }

        private void navBarItemMOActualPrice_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOActualPrice ctrlMOActual = new ctrlMOActualPrice();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOActual);
            ctrlMOActual.Dock = DockStyle.Fill;
        }

        private void navBarItemMONGCheckDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMONGCheckDetail ctrlMONGcheckdetail = new ctrlMONGCheckDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONGcheckdetail);
            ctrlMONGcheckdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemMONGCheckInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MONGCheckInput ctrlMONGcheckinput = new frm_MONGCheckInput();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONGcheckinput);
            ctrlMONGcheckinput.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineHandDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            
            ctrlMAchineHandDetail ctrlMachineHandDetail = new ctrlMAchineHandDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineHandDetail);
            ctrlMachineHandDetail.Dock = DockStyle.Fill;
        }

        private void navBarItemInspHandMisReturn_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlInspHandMisReturnDetail ctrlInspHandMisReturndetail = new ctrlInspHandMisReturnDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspHandMisReturndetail);
            ctrlInspHandMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem3_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlHandInspMisReturnDetail ctrlHandInspMisReturndetail = new ctrlHandInspMisReturnDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlHandInspMisReturndetail);
            ctrlHandInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem4_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBusInspDetail ctrlBusInspdetail = new ctrlBusInspDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusInspdetail);
            ctrlBusInspdetail.Dock = DockStyle.Fill;
        }

        private void navBarItem5_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlInspBusMisReturnDetail ctrlInspBusMisReturndetail = new ctrlInspBusMisReturnDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspBusMisReturndetail);
            ctrlInspBusMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem6_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBusInspMisReturnDetail ctrlBusInspMisReturndetail = new ctrlBusInspMisReturnDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusInspMisReturndetail);
            ctrlBusInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem7_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlInspAnodDetail ctrlInspAnoddetail = new ctrlInspAnodDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspAnoddetail);
            ctrlInspAnoddetail.Dock = DockStyle.Fill;
        }

        private void navBarItem8_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlAnodQtyChangeDetail ctrlAnodQtyChangedetail = new ctrlAnodQtyChangeDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlAnodQtyChangedetail);
            ctrlAnodQtyChangedetail.Dock = DockStyle.Fill;
        }

        private void navBarItem9_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlAnodInspDetail ctrlAnodInspdetail = new ctrlAnodInspDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlAnodInspdetail);
            ctrlAnodInspdetail.Dock = DockStyle.Fill;
        }

        private void navBarItem10_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlInspF3Detail ctrlInspF3detail = new ctrlInspF3Detail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspF3detail);
            ctrlInspF3detail.Dock = DockStyle.Fill;
        }

        private void navBarItem11_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlF3StoreDetail ctrlF3Storedetail = new ctrlF3StoreDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlF3Storedetail);
            ctrlF3Storedetail.Dock = DockStyle.Fill;
        }

        private void navBarItemDeadlineConfirm_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlDeadlineConfirm ctrlDeadlineconfirm = new ctrlDeadlineConfirm();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlDeadlineconfirm);
            ctrlDeadlineconfirm.Dock = DockStyle.Fill;
        }

        private void navBarItemDeadlineCaculation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlDeadlineCaculation ctrlDeadlinecaculation = new ctrlDeadlineCaculation();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlDeadlinecaculation);
            ctrlDeadlinecaculation.Dock = DockStyle.Fill;
        }

        private void navBarItemMonthlyExpence_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMonthlyExpence ctrlMonthlyexpence = new ctrlMonthlyExpence();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMonthlyexpence);
            ctrlMonthlyexpence.Dock = DockStyle.Fill;
        }

        private void navBarItemMonthlyChargeUpdate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_MonthlyChargeUpdate ctrlMonthlychargeUpdate = new frm_MonthlyChargeUpdate();
            ctrlMonthlychargeUpdate.ShowDialog();
            //spMain.Panel2.Controls.Clear();
            //spMain.Panel2.Controls.Add(ctrlMonthlychargeUpdate);
            //ctrlMonthlychargeUpdate.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlQuatationList ctrlQuationlist = new ctrlQuatationList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuationlist);
            ctrlQuationlist.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotionMachine_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlQuotationMachine ctrlQuotaitonmachine = new ctrlQuotationMachine();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotaitonmachine);
            ctrlQuotaitonmachine.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlQuotationMaterial ctrlQuotationmaterial = new ctrlQuotationMaterial();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotationmaterial);
            ctrlQuotationmaterial.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationCaculation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlQuotationCaculation ctrlQuotioncaculation = new ctrlQuotationCaculation();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotioncaculation);
            ctrlQuotioncaculation.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationView_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemMachineWTSDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineWTSDetail ctrlMachineWTSdetail = new ctrlMachineWTSDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTSdetail);
            ctrlMachineWTSdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemMachineDailyReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemMachineDailyCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemMachineWTSFind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemWTSMachinetoGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineWTStoGA ctrlMachineWTStoga = new ctrlMachineWTStoGA();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTStoga);
            ctrlMachineWTStoga.Dock = DockStyle.Fill;
        }

        private void navBarItemJigReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlJigReport ctrlJigreport = new ctrlJigReport();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlJigreport);
            ctrlJigreport.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborWTSDeatail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlLaborWTSDetail ctrlLaborWTSdetail = new ctrlLaborWTSDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborWTSdetail);
            ctrlLaborWTSdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemStaffDailyWorkingTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemStaffWorkingTimeCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemWTSLaborToGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemOverTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
        }

        private void navBarItemDataTranfer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frm_DataTranfer frmData = new frm_DataTranfer();
            frmData.ShowDialog();
        }

        private void navItemMOQtyStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOQtyStatus ctrlMOQtystatus = new ctrlMOQtyStatus();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOQtystatus);
            ctrlMOQtystatus.Dock = DockStyle.Fill;
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlHandInspDetail ctrlHandInspdetail = new ctrlHandInspDetail();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlHandInspdetail);
            ctrlHandInspdetail.Dock = DockStyle.Fill;
        }

        private void navBarItem2_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMOOptionStatus ctrlMOOptionStatus = new ctrlMOOptionStatus();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOOptionStatus);
            ctrlMOOptionStatus.Dock = DockStyle.Fill;
        }

        private void navMachineConfiguration_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineConfiguration ctrlMaconfig = new ctrlMachineConfiguration();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMaconfig);
            ctrlMaconfig.Dock = DockStyle.Fill;
        }

        private void navBarItemJigReport_LinkClicked_1(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlJigReport ctrlJigReport = new ctrlJigReport();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlJigReport);
            ctrlJigReport.Dock = DockStyle.Fill;
        }

        private void navNhaplenhtinhTGGC_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlKH_NhaplenhtinhthoigianGC ctrlKH = new ctrlKH_NhaplenhtinhthoigianGC();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlKH);
            ctrlKH.Dock = DockStyle.Fill;
        }

        private void navKHGC_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlNhapOderlapKHGC ctrlKHGC = new ctrlNhapOderlapKHGC();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlKHGC);
            ctrlKHGC.Dock = DockStyle.Fill;
        }

        private void navBarItem12_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMaterial ctrlKHGC = new ctrlMaterial();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlKHGC);
            ctrlKHGC.Dock = DockStyle.Fill;
        }

        private void navBarItem13_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlPartList ctrlKHGC = new ctrlPartList();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlKHGC);
            ctrlKHGC.Dock = DockStyle.Fill;
        }

        private void navCustomer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlCustomer ctrlSetion = new ctrlCustomer();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navOvertime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlOverTime ctrlSetion = new ctrlOverTime();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navKHKTra_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlNhapOrderlapKHKtra ctrlSetion = new ctrlNhapOrderlapKHKtra();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navKHVia_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlNhapOderLapKHvia ctrlSetion = new ctrlNhapOderLapKHvia();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBarItem17_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlKHKT06 ctrlSetion = new ctrlKHKT06();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navOther_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlOther ctrlSetion = new ctrlOther();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navDSLVL_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlDSLVL ctrlSetion = new ctrlDSLVL();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navKieuchitiet_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlKieuchitet ctrlSetion = new ctrlKieuchitet();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;

        }

        private void navLoaicauhinh_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlLoaicauhinh ctrlSetion = new ctrlLoaicauhinh();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navMaterialform_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMaerialForm ctrlSetion = new ctrlMaerialForm();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navPCPKD_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlPCPKD ctrlSetion = new ctrlPCPKD();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navconfig_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlMachineConfiguration ctrlSetion = new ctrlMachineConfiguration();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navtableImport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlFormImport ctrlSetion = new ctrlFormImport();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBCKH_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlBCKH ctrlSetion = new ctrlBCKH();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navNGNoibo_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ucNGNoibo ctrlSetion = new ucNGNoibo();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBCWorkTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ucBCTimeMonth ctrlSetion = new ucBCTimeMonth();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navCheckTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ucCheckWorkTime ctrlSetion = new ucCheckWorkTime();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBarItem14_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlXLBM ctrlSetion = new ctrlXLBM();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navInCauHinh_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ctrlIncauhinhReport ctrlSetion = new ctrlIncauhinhReport();
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }
    }
}
